import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description: 修改文件的名字
 */
public class FileTest6 {
    public static void main(String[] args) {
        File file1 = new File("./aaa");
        File file2 = new File("./zzz");
        file1.renameTo(file2);
    }
}
